package com.ruoyi.custom.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.custom.mapper.PotentialStudentPoolMapper;
import com.ruoyi.custom.domain.PotentialStudentPool;
import com.ruoyi.custom.service.IPotentialStudentPoolService;

/**
 * 潜在学员池Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-27
 */
@Service
public class PotentialStudentPoolServiceImpl implements IPotentialStudentPoolService 
{
    @Autowired
    private PotentialStudentPoolMapper potentialStudentPoolMapper;

    /**
     * 查询潜在学员池
     * 
     * @param id 潜在学员池主键
     * @return 潜在学员池
     */
    @Override
    public PotentialStudentPool selectPotentialStudentPoolById(Long id)
    {
        return potentialStudentPoolMapper.selectPotentialStudentPoolById(id);
    }

    /**
     * 查询潜在学员池列表
     * 
     * @param potentialStudentPool 潜在学员池
     * @return 潜在学员池
     */
    @Override
    public List<PotentialStudentPool> selectPotentialStudentPoolList(PotentialStudentPool potentialStudentPool)
    {
        return potentialStudentPoolMapper.selectPotentialStudentPoolList(potentialStudentPool);
    }

    /**
     * 新增潜在学员池
     * 
     * @param potentialStudentPool 潜在学员池
     * @return 结果
     */
    @Override
    public int insertPotentialStudentPool(PotentialStudentPool potentialStudentPool)
    {
        return potentialStudentPoolMapper.insertPotentialStudentPool(potentialStudentPool);
    }

    /**
     * 修改潜在学员池
     * 
     * @param potentialStudentPool 潜在学员池
     * @return 结果
     */
    @Override
    public int updatePotentialStudentPool(PotentialStudentPool potentialStudentPool)
    {
        return potentialStudentPoolMapper.updatePotentialStudentPool(potentialStudentPool);
    }

    /**
     * 批量删除潜在学员池
     * 
     * @param ids 需要删除的潜在学员池主键
     * @return 结果
     */
    @Override
    public int deletePotentialStudentPoolByIds(Long[] ids)
    {
        return potentialStudentPoolMapper.deletePotentialStudentPoolByIds(ids);
    }

    /**
     * 删除潜在学员池信息
     * 
     * @param id 潜在学员池主键
     * @return 结果
     */
    @Override
    public int deletePotentialStudentPoolById(Long id)
    {
        return potentialStudentPoolMapper.deletePotentialStudentPoolById(id);
    }
}
